Class BootOnLoadExtension

  • All Implemented Interfaces:
    javax.enterprise.inject.spi.Extension

    public class BootOnLoadExtension
    extends java.lang.Object
    implements javax.enterprise.inject.spi.Extension
    CDI extension that is responsible to eagerly bootstrap CDI beans that are annotated with @BootOnLoad. That mainly means that beans annotated with @BootOnLoad will be invoked (their) @PostConstruct method on CDI container initialization. This extension will only take effect on beans marked as:
    • @javax.enterprise.context.ApplicationScoped
    • @javax.inject.Singleton
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterDeploymentValidation​(javax.enterprise.inject.spi.AfterDeploymentValidation event, javax.enterprise.inject.spi.BeanManager manager)  
      <X> void processBean​(javax.enterprise.inject.spi.ProcessBean<X> event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BootOnLoadExtension

        public BootOnLoadExtension()
    • Method Detail

      • processBean

        public <X> void processBean​(@Observes
                                    javax.enterprise.inject.spi.ProcessBean<X> event)
      • afterDeploymentValidation

        public void afterDeploymentValidation​(@Observes
                                              javax.enterprise.inject.spi.AfterDeploymentValidation event,
                                              javax.enterprise.inject.spi.BeanManager manager)